package com.hxgz.steel.dao;

import com.hxgz.steel.domain.User;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component("userMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User findByUserName(String userName);


    int checkUsername(String username);

    User selectLogin(@Param("username") String username, @Param("password") String password);

    int updatePwdByName(User user);

    Integer getAllUserNumber();

    Integer getUserByWeek();

    List<User> getAuthenticationUser(HashMap<Object, Object> map);

    Integer getRoleStatusById(Long id);
}